package org.example;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import service.UserService;

public class Main3 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("spring4.xml");
        UserService userService = (UserService) context.getBean("UserService");
        userService.login();

    }
}
